home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
PCW_C.ARJ
/
INT29DMO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-05
|
621b
|
30 lines
#include <stdio.h>
#include <stdlib.h>
#include "pcwproto.h"
int set_int29(void);
void reset_int29(void);
#define rnd(x) (rand() % (x))
void main(void) {
WNDPTR *wnd;
int mxr, mxc, i;
/* Create a box with a advertisment for the C language */
chk_video_state(&mxr,&mxc);
bordercolor(YELLOW,BLUE);
wnd = wframe(5,10,20,70,LIGHTGRAY,BLUE);
set_int29();
for (i = 0; i < 100; i++)
printf("Hello World!");
system("dir");
system("c:\csource\qwrite.exe");
printf("That's all folks. Great is it not?!");
keywait(5);
reset_int29();
wpop(wnd);
}